#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
	
int main(void) {
	FILE* fp = fopen("1.txt", "rb+");
	if (fp == NULL) {
		printf("failed to open file.\n");
		exit(-1);
	}
	//fputc('1', fp);
	//fputc('\n', fp);
	//fputc('2', fp);
	int ch = fgetc(fp);
	int ch2 = fgetc(fp);
	int ch3 = fgetc(fp);
	int ch4 = fgetc(fp);

	fclose(fp);
	return 0;
}